import request from "../utils/request";

//条件分页查询
export const queryWarehouse = (page,pageSize,name,cityName,personChargeName) => {return request.get(`/warehouse?page=${page}&pageSize=${pageSize}&name=${name}&cityName=${cityName}&personChargeName=${personChargeName}`)};

//添加仓库
export const addWarehouseApi = (data) => {return request.post(`/warehouse`,data)};

//回显查询
export const queryWarehouseById = (id) => {return request.get(`/warehouse/${id}`)};

//修改仓库
export const updateWarehouse = (data) => {return request.put(`/warehouse`,data)};

//删除仓库
export const deleteWarehouse = (id) => {return request.delete(`/warehouse/${id}`)};

//查询所有仓库
export const queryWarehouseAll = () => {return request.get(`/warehouse/all`)};
